package com.heima.ocr;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2023/1/15 17:38
 */
public class Test {
    public static void main(String[] args) {
        String imageUrl = "http://192.168.101.139:9000/leadnews/2023/01/14/20e56f32c8504520a782ba757af5fcc1.jpg";
//        //index = imageUrl.indexOf("/", index + 4);
        String after2 = imageUrl.substring(imageUrl.indexOf("leadnews"));
        after2 = after2.substring(after2.indexOf("/"));

//        String after3 = imageUrl.substring(imageUrl.indexOf("leadnews",imageUrl.indexOf("/") + 2)+imageUrl.indexOf("/", imageUrl.indexOf("/")));
        //String substring = after3.substring( after3.indexOf("/"));

        System.out.println(after2);



    }
}
